package com.nameless.feign;

import com.nameless.entity.Car;
import com.nameless.entity.CarInsurance;
import com.nameless.entity.CarType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : 陈灰灰
 * @Date: 2023/03/02/19:52
 * @Description:
 */
@FeignClient("car-cars")
public interface CarFeigns {
    @GetMapping("/cars/car/selectId/{id}")
    public Car selectId(@PathVariable Integer id);

    @RequestMapping("/cars/carType/getTypeName/{carId}")
    CarType getTypeName(@PathVariable Integer carId);
    @RequestMapping("/car/api/getInsuranceByCarId/{carId}")
    CarInsurance getCarInsuranceById(@PathVariable Integer carId);
}
